package model

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	Num     int
	UserId  uint
	OrderId string
	Type    uint // 1未支付 2已支付
	Money   float64
}

type ReqOrder struct {
	Num       int  `json:"num" form:"num"`
	ProductId uint `json:"product_id" form:"product_id"`
	AddressId uint `json:"address_id" form:"address_id"`
}
type RequestBody struct {
	List    []ReqOrder `json:"list"`
	CartIds string     `form:"cartIds"` //购物车列表
}
